#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
将PNG图标转换为ICO格式
"""

from PIL import Image

# Load PNG image
img = Image.open('Cyber Monitoring.png')

# Convert to ICO format, support adaptvie size
img.save('icon.ico', format='ICO', sizes=[(16, 16), (32, 32), (48, 48), (64, 64), (128, 128), (256, 256)])

print("图标转换成功: icon.ico")

